// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsClusterListResponse.h"

namespace aliyun { namespace Ons {

OnsClusterListResponse::OnsClusterListResponse() {
}

const string& OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetClusterName(void) const {
  return ClusterName_;
}

const string& OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetBrokerName(void) const {
  return BrokerName_;
}

int OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetBrokerId(void) const {
  return BrokerId_;
}

const string& OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetBrokerAddr(void) const {
  return BrokerAddr_;
}

const string& OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetBrokerIp(void) const {
  return BrokerIp_;
}

const string& OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetVersion(void) const {
  return Version_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetInTPS(void) const {
  return InTPS_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetOutTPS(void) const {
  return OutTPS_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetInTotalYest(void) const {
  return InTotalYest_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetOutTotalYest(void) const {
  return OutTotalYest_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetInTotalToday(void) const {
  return InTotalToday_;
}

float OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo::GetOutTotalToday(void) const {
  return OutTotalToday_;
}

const std::vector<OnsClusterListResponse::ClusterInfoDataDo::BrokerInfoDataDo>& OnsClusterListResponse::ClusterInfoDataDo::GetBrokerInfoList(void) const {
  return BrokerInfoList_;
}

const string& OnsClusterListResponse::ClusterInfoDataDo::GetClusterName(void) const {
  return ClusterName_;
}

const std::vector<OnsClusterListResponse::ClusterInfoDataDo>& OnsClusterListResponse::GetData(void) const {
  return Data_;
}

const string& OnsClusterListResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsClusterListResponse::BaseKey(void) {
  return "OnsClusterListResponse";
}

void OnsClusterListResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Data__length = 0;
  UnmarshallerInt(Data__length, response_map, "OnsClusterListResponse.Data.Length");
  if(Data__length >= 0) {
    Data_.resize(Data__length);
    for(int i1 = 0; i1 < Data__length; i1++) {
      int Data_i1_BrokerInfoList__length = 0;
      UnmarshallerInt(Data_i1_BrokerInfoList__length, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList.Length");
      if(Data_i1_BrokerInfoList__length >= 0) {
        Data_[i1].BrokerInfoList_.resize(Data_i1_BrokerInfoList__length);
        for(int i2 = 0; i2 < Data_i1_BrokerInfoList__length; i2++) {
          UnmarshallerString(Data_[i1].BrokerInfoList_[i2].ClusterName_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].ClusterName");
          UnmarshallerString(Data_[i1].BrokerInfoList_[i2].BrokerName_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].BrokerName");
          UnmarshallerInt(Data_[i1].BrokerInfoList_[i2].BrokerId_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].BrokerId");
          UnmarshallerString(Data_[i1].BrokerInfoList_[i2].BrokerAddr_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].BrokerAddr");
          UnmarshallerString(Data_[i1].BrokerInfoList_[i2].BrokerIp_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].BrokerIp");
          UnmarshallerString(Data_[i1].BrokerInfoList_[i2].Version_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].Version");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].InTPS_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].InTPS");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].OutTPS_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].OutTPS");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].InTotalYest_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].InTotalYest");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].OutTotalYest_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].OutTotalYest");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].InTotalToday_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].InTotalToday");
          UnmarshallerFloat(Data_[i1].BrokerInfoList_[i2].OutTotalToday_, response_map, "OnsClusterListResponse.Data[+"+string_ValueOfInt(i1)+"].BrokerInfoList["+string_ValueOfInt(i2)+"].OutTotalToday");
        } // for(int i2 = 0; i2 < Data_i1_BrokerInfoList__length; i2++) {
      } // if(Data_i1_BrokerInfoList__length >= 0) {

      UnmarshallerString(Data_[i1].ClusterName_, response_map, "OnsClusterListResponse.Data["+string_ValueOfInt(i1)+"].ClusterName");
    } // for(int i1 = 0; i1 < Data__length; i1++) {
  } // if(Data__length >= 0) {

  UnmarshallerString(HelpUrl_, response_map, "OnsClusterListResponse.HelpUrl");
}


} } // namespace aliyun { namespace Ons {

// end of file 
